﻿@model TestWebApplication.Models.Forms.LogonForm

@{
    ViewBag.Title = "Вход на сайт";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="info-text">
    <span>Если вы еще не зарегистрированы на сайте, то можете сделать это </span>
    @Html.ActionLink("сейчас", "Register", "Account")
    <span>!</span>
</div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Вход в систему</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.LoginName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LoginName)
            @Html.ValidationMessageFor(model => model.LoginName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="submit-batton">
            <input type="submit" value="Войти" />
        </div>
    </fieldset>
}



